package cn.itsource.hrm.dto;

import cn.itsource.hrm.domain.Employee;
import cn.itsource.hrm.domain.Tenant;

/**
 * 前端提交的参数格式
 * {
 * tenant:{
 * companyName:"",
 * companyNum:""
 * ...
 * },
 * employeel:{
 * username:"",
 * password:""
 * ...
 * },
 * mealId: 2222
 * }
 */

//用来接收机构入驻的参数 : 机构 ， 员工 ， 机构_套餐中间表
public class EnteringDTO {
    //1.扁平化：接收几个字段就定义几个字段
    //2.对象组合

    //机构的参数
    private Tenant tenant;

    //管理员参数
    private Employee employee;

    //套餐id
    private Long mealId;

    @Override
    public String toString() {
        return "EnteringDTO{" +
                "tenant=" + tenant +
                ", employee=" + employee +
                ", mealId=" + mealId +
                '}';
    }

    public Tenant getTenant() {
        return this.tenant;
    }

    public void setTenant(final Tenant tenant) {
        this.tenant = tenant;
    }


    public Employee getEmployee() {
        return this.employee;
    }

    public void setEmployee(final Employee employee) {
        this.employee = employee;
    }

    public Long getMealId() {
        return this.mealId;
    }

    public void setMealId(final Long mealId) {
        this.mealId = mealId;
    }
}
